profiledir = $(datadir)/ereseva/profiles

profile_in_FILES = \
	google-talk.profile.in \
	jabber.profile.in \
	link-local.profile.in \
	msn-messenger.profile.in

profile_DATA = $(profile_in_FILES:.profile.in=.profile)

%.profile: %.profile.in
	LC_ALL=C $(top_builddir)/intltool-merge -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@

install-data-local:
	for profile_file in $(profile_FILES); do \
		$(mkinstalldirs) $(datadir)/ereseva/profiles; \
		$(INSTALL_DATA) $(srcdir)/$$profile_file $(datadir)/ereseva/profiles/$$FILE; \
	done

DISTCLEANFILES = Makefile.in

CLEANFILES = $(profile_DATA)

EXTRA_DIST = \
	$(profile_in_FILES)
